00001 00007 class TimelineEventHandler : public osgGA::GUIEventHandler { 00008 00009 osg::ref_ptr<osgProducer::Viewer> _viewer; 00010 osg::ref_ptr<osg::Group> _quadGroup; 00011 osg::StateSet* stateset; 00012 osg::StateSet* statesetG; 00013 osg::StateSet* statesetOld; 00014 00015 int isBeforeHit; 00016 00017 00018 public: 00023 TimelineEventHandler(osg::ref_ptr<osgProducer::Viewer> viewer,osg::ref_ptr<osg::Group> quadGroup): 00024 _viewer(viewer),_quadGroup(quadGroup) {isBeforeHit=0;} 00028 ~TimelineEventHandler() {} 00038 bool handle(const osgGA::GUIEventAdapter& ea,osgGA::GUIActionAdapter& us); 00045 void select(const osgGA::GUIEventAdapter& ea); 00050 void changeStateRed(); 00055 void changeStateWhite(); 00060 void changeStateGrey(); 00065 void paintWhiteAll(); 00070 void paintGrey(); 00071 };
1.4.6-NO